package com.from.menlo.park.data;

public enum Tag {
    EVENT(1,"Event"),
    MOOD(2, "Mood");
    
	private int value;
	private String name;
    Tag(int value, String name){
		this.value = value;
		this.name = name;
	}
	public int getValue()
	{
		return value;
	}
	public String toString(){
		return name;
	}
	public static Tag fromId(int value){
		if ( EVENT.value == value )
			return EVENT;
		return MOOD;
	}
}
